package org.ala.shopping_test.user_center.repository.user.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;


/**
 *	Entity (user_buyer)
 *  品类表
 *
 *	@author 骆毅 (ala)
 *	@date 2025-03-24 15:03:46
 */
@ApiModel("user_buyer")
public class UserBuyerDO implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     *  买家id
     */
    @ApiModelProperty("买家id")
    protected Long id;
    /**
     *  买家名称
     */
    @ApiModelProperty("买家名称")
    protected String buyerName;
    /**
     *  买家评级
     */
    @ApiModelProperty("买家评级")
    protected Integer buyerLevel;
    /**
     *  记录创建时间
     */
    @ApiModelProperty("记录创建时间")
    protected Long createTime;
    /**
     *  记录最后修改时间
     */
    @ApiModelProperty("记录最后修改时间")
    protected Long modifyTime;


    public static UserBuyerDO build() {return new UserBuyerDO();}


    public Long getId() {return id;}
    public void setId(Long id) { this.id = id; }
    public UserBuyerDO id(Long id) { this.id = id; return this; }

    public String getBuyerName() {return buyerName;}
    public void setBuyerName(String buyerName) { this.buyerName = buyerName; }
    public UserBuyerDO buyerName(String buyerName) { this.buyerName = buyerName; return this; }

    public Integer getBuyerLevel() {return buyerLevel;}
    public void setBuyerLevel(Integer buyerLevel) { this.buyerLevel = buyerLevel; }
    public UserBuyerDO buyerLevel(Integer buyerLevel) { this.buyerLevel = buyerLevel; return this; }

    public Long getCreateTime() {return createTime;}
    public void setCreateTime(Long createTime) { this.createTime = createTime; }
    public UserBuyerDO createTime(Long createTime) { this.createTime = createTime; return this; }

    public Long getModifyTime() {return modifyTime;}
    public void setModifyTime(Long modifyTime) { this.modifyTime = modifyTime; }
    public UserBuyerDO modifyTime(Long modifyTime) { this.modifyTime = modifyTime; return this; }


    /**
     *  是否为空
     *  <p> 仅仅是每个字段的为空检测。若存在特殊空判，需要自行实现
     */
    public boolean isEmpty() {
        if (this.id != null) {return false;}
        if (this.buyerName != null) {return false;}
        if (this.buyerLevel != null) {return false;}
        if (this.createTime != null) {return false;}
        if (this.modifyTime != null) {return false;}
        return true;
    }
    /**
     *  copy（注：这是浅拷贝）
     */
    public UserBuyerDO copy() {
        UserBuyerDO copy = new UserBuyerDO();
        copy.id = this.id;
        copy.buyerName = this.buyerName;
        copy.buyerLevel = this.buyerLevel;
        copy.createTime = this.createTime;
        copy.modifyTime = this.modifyTime;
        return copy;
    }
}
